Code
import cellestial as cl
import scanpy as sc
from lets_plot import *
LetsPlot.setup_html()
data = sc.read("data/pbmc3k_pped.h5ad")Cellestial is an interactive single-cell plotting library.
By default, cellestial produces HTML plots with geoms reveal tooltips when hovering.
dimensional plot produces dimensionalilty reduction plots by taking dimensions argument. Yet, the subset of plots pca, umap and tsne are also available.
Also, the expression plot is also a subset of dimensional plot but it only works with genes.
There are also zoomable and panable if specified.
Note that this functionality can be added via + ggtb() layer of lets_plot.
Cellestial uses Lets-Plot, a ggplot2 impelementation in Pyton. As such, it allows adding or changing layers. Including color palettes, titles, labels, size etc., .
Here an example with switching color palette to hue which is also the ggplot2 and Seurat defaults. Also, other theme() based customizations are given as examples.
Indeed, you can modify the size.
Multi-plots uses dimensional plot and grids list of keys given.
While single-plot functions which generate a single-plot object, Multi-plot functions have plural names which provides predictable behaviors.
So, pca becomes pcas, umap becomes umaps, tsne becomes tsnes etc., for multi-plots.